<?php


namespace App\Http\Request\System\Specialist;


use App\Common\Utils\BaseRequest;

class editRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'id' => 'required|integer|min:1',
            'user_name' => 'required',
            'name' => 'required',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'id.required' => 'id不能为空',
            'id.integer' => 'id为整数',
            'id.min' => 'id必须大于0',
            'user_name.required' => '专家账号不能为空',
            'name.required' => '专家账号不能为空',
        ];

        return $messages;
    }
}
